package com.example.teesystem.entity.vo.examPaper;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author pxr
 * @data 2022/4/11 10:12
 */
@Data
public class IntelligentPaperCreateVo {
    @NotBlank(message = "试卷名不能为空")
    private String name;

    @NotNull(message = "课程id不能为空")
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;

    @NotNull(message = "试卷难度不能为空")
    private Integer level;

    private Integer judge = 0;
    private Integer single = 0;
    private Integer multiple = 0;
    private Integer fillBlank = 0;
    private Integer briefAnswer = 0;

    @NotNull(message = "章节列表不能为空")
    private Integer[] chapter;
}
